package tests;

import java.util.GregorianCalendar;

import bus.Year;

import junit.framework.Assert;
import junit.framework.TestCase;

public class YearTests extends TestCase {

	public YearTests(String arg0) {
		super(arg0);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	public void testYear() {
		Year year = new Year(new GregorianCalendar(), 2006);
		
		Integer monthsInYear = year.getMonths().size();
		Integer expectedMonthsInYear = 12;
		
		Assert.assertEquals(expectedMonthsInYear, monthsInYear);
		
	}
}
